<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body { font-family: "微软雅黑", sans-serif; margin: 40px; }
        form { margin-bottom: 20px; }
    </style>
</head>
<body>
    <h2>月销量</h2>
    <form method="get" action="{{ url_for('menu.Top10_month')}}">
        年份：
        <select name="year">
            {% for y in years %}
                <option value="{{ y }}" {% if y == current_year %}selected{% endif %}>{{ y }}</option>
            {% endfor %}
        </select>
        月份：
        <select name="month">
            {% for m in months %}
                <option value="{{ m }}" {% if m == current_month %}selected{% endif %}>{{ m }}</option>
            {% endfor %}
        </select>
        类型：
        <select name="type">
            <option value="厂商" {% if current_type =='厂商' %}selected{% endif %}>厂商</option>
            <option value="车型" {% if current_type =='车型' %}selected{% endif %}>车型</option>
        </select>
        <input type="submit" value="查询">
    </form>

    <div>
        {{ chart_html | safe }}
    </div>
</body>
</html>